package com.jic.member.constant.enums;


public enum EventTypeEnums {
	MEMBER_EVENT_TYPE(1, "会员事件"),

	CONSUME_EVENT_TYPE(2,"消费事件"),


	;
	private Integer type;
	private String name;

	EventTypeEnums(Integer type, String name) {
		this.type = type;
		this.name = name;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	private static EventTypeEnums lookupByType(Integer type){
		EventTypeEnums eventTypeEnums = null;
		for (EventTypeEnums value : EventTypeEnums.values()) {
			if(value.getType().equals(type)){
				eventTypeEnums = value;
				break;
			}
		}
		return eventTypeEnums;
	}
}
